<?php

namespace app\index\controller;

use app\common\controller\Frontend;
use think\Db;

class Friend extends Frontend
{

    protected $noNeedLogin = '*';
    protected $noNeedRight = '*';
    protected $layout = 'default';

    protected $table = 'friend';

    public function _initialize(){
        parent::_initialize();

    }

    public function index()
    {

        $data = Db::name($this->table)->order('weigh desc,id desc')->select();
        $this->assign('lists', $data);
        return $this->view->fetch();
    }

}
